import Vue from 'vue'
import VueRouter from 'vue-router'
//引入一级页面

import Conference from '../components/Conference'
import MyConference from '../components/MyConference'
import AllConference from '../components/AllConference'
import Message from '../components/Message'
import Mine from '../components/Mine'
//引入二级页面
import ConDetail from '../components/ConDetail'
//引入 三级页面
     //九宫格
import Applicant from '../components/three/Applicant'
import Invite from '../components/three/Invite'
import Environment from '../components/three/Environment'
import Journey from '../components/three/Journey'
import Guest from '../components/three/Guest'
import Pay from '../components/three/Pay'
import Organization from '../components/three/Organization'
import Counsel from '../components/three/Counsel'
import Traffic from '../components/three/Traffic'
   //其他
import ApplyInfo from '../components/three/ApplyInfo'
import Communicate from '../components/three/Communicate'
import Apply from '../components/three/Apply'

//引入0级页面 开始 登录 注册
import Start from '../components/zero/Start'
import Login from '../components/zero/Login'
import Reg from '../components/zero/Reg'

Vue.use(VueRouter)


export default new VueRouter({
  routes: [
    {
      path: '/Conference',
      component:Conference
    },
    {
      path: '/AllConference',
      component: AllConference
    },
    {
      path: '/MyConference',
      component: MyConference
    },
    {
      path: '/Message',
      component: Message
    },
    {
      path: '/Mine',
      component: Mine
    },
    {
      path: '/ConDetail/:id',
      component: ConDetail
    },
    {
      path: '/Mine',
      component: Mine
    },
    //三级页面组件 
    {
        path:'/Applicant',
        component:Applicant
    },
    {
      path: '/Invite/:id',
      component: Invite
    },
    {
      path: '/Journey/:id',
      component: Journey
    },
    {
      path: '/Environment',
      component: Environment
    },
    {
      path:'/Guest/:id',
      component: Guest
    },
    {
      path: '/Pay',
      component: Pay
    },
    {
      path: '/Organization/:id',
      component: Organization
    },
    {
      path: '/Counsel/:id',
      component: Counsel
    },
    {
      path: '/Traffic/:id',
      component: Traffic
    },
    {
      path: '/applyInfo/:id',
      component: ApplyInfo
    },
    {
      path: '/Apply/:id',
      component: Apply
    },
    {
      path: '/Communicate/:id',
      component: Communicate
    },

    // 0级页面组件
    {
      path: '/Start',
      component: Start
    },
    {
      path: '/Login',
      component: Login
    },
    {
      path: '/Reg',
      component: Reg
    },
    {
      path: '*',
      redirect:'/Start'
    }
  ],
  linkActiveClass: 'active'
})
